package com.eric.service;

import cn.dev33.satoken.util.SaResult;
import com.eric.domain.po.User;
import com.eric.domain.vo.UserVo;
import com.github.yulichang.base.MPJBaseService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 新哥
 * @since 2024-02-12
 */
public interface UserService extends MPJBaseService<User> {

    Object getOneById(Integer id);


    SaResult doLoginService(Map<String, String> userPw, HttpServletRequest request);

    SaResult saveOne(User newUser, MultipartFile file, HttpServletRequest req);

    List<String> getUserPermissionById(int i);

    List<String> getUserRolesByUserId(int userId);
}

